function OpenSharePointFolder() {
    debugger;    
    //Retrieve The URL from Document Location Field on form. 
    var sharePointUrl = Xrm.Page.getAttribute("ppms_sharepointdocumentlocation").getValue();
    if (sharePointUrl != null) {
        var customParameters = encodeURIComponent(sharePointUrl);
        Xrm.Utility.openWebResource("ppms_OpenWebPage.html", customParameters);
    }
    else{
        alert("SharePoint Folder has not been created.")
    }
}